package b;

public class 旋转矩阵 {
    public void 旋转矩阵(int[][] gird) {
        int n = gird.length;
        //先上下交换
        for (int i = 0; i < n / 2; i++) {
            int temp[] = gird[i];
            gird[i] = gird[n - i - 1];
            gird[n - i - 1] = temp;
        }
        //
        //在按照对角线交换
        for (int i = 0; i < n; ++i) {
            for (int j = i + 1; j < n; ++j) {
                int temp = gird[i][j];
                gird[i][j] = gird[j][i];
                gird[j][i] = temp;
            }
        }
        //
    }

    public static void main(String[] args) {
        Integer a=123;
        Integer b=123;
        System.out.println(a==b);//123T , 128F
    }
}
